package com.crm.dto;

import lombok.Data;

import java.time.LocalDate;
import java.util.Map;

@Data
public class RolePageDTO{

    private String roleName;
    private String roleKey;
    private String status;

    /**
     * 用来接受前端传入的params参数
     */
    private Map<String, Object> params;
    //开始时间

    private LocalDate beginTime;
    //结束时间

    private LocalDate endTime;

    //分页页码
    private Integer pageNum=1;
    //分页页码
    private Integer pageSize=5;
    public void check() {
        if (pageNum <= 0) {
            pageNum = 1;
        }
        if (pageSize <= 0 || pageSize >= 100) {
            pageSize = 10;
        }
    }
}
